export class Tooler {
  static generateRandomId() {
    return Math.random().toString(36).substr(2, 6);
  }

  static sleep(ms) {
    return new Promise((resolve) => setTimeout(resolve, ms));
  }

  static getRandomInt(a, b) {
    return Math.floor(Math.random() * (b - a + 1) + a);
  }


  static groupArrayBySeven(ary) {
    let result = [];
    for (let i = 0; i < ary.length; i += 7) {
      result.push(ary.slice(i, i + 7));
    }
    return result;
  }
}